<template>
  <div class="tag-wrapper" @click="onClick">
    <div class="tag">{{tagName}}</div>
  </div>
</template>

<script>
  export default {
    name: 'Tag',
    props: {
      tagName: {type: String, default: 'Android'}
    },
    methods: {
      onClick () {
        this.$emit('onClick')
      }
    },
    mounted () {
    }
  }
</script>

<style scoped lang="scss">
  .tag-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 50px;
    color: #222222;
    background: #EDEEEE;
    padding: 4px 13px;
    font-size: 14px;
    .tag {
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
</style>
